﻿using System.Windows.Input;

namespace Present.Commands.Decorators
{
    public class SelectableCommandDecorator<TInnerCommand> : CommandDecorator<TInnerCommand> , ISelectableCommand
        where TInnerCommand : ICommand
    {
        private bool isSelected;

        private string name;

        public SelectableCommandDecorator(TInnerCommand innerCommand) : base(innerCommand)
        {
        }

        public bool IsSelected
        {
            get { return isSelected; }
            set
            {
                isSelected = value;
                OnPropertyChanged("IsSelected");
            }
        }

        public string Name
        {
            get { return name; }
            set
            {
                name = value;
                OnPropertyChanged("Name");
            }
        }
    }
}